{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Notebook Figure Directive\n", "\n", "This is a ``.ipynb`` file with ``figure`` directive.\n", "The example thumbnail is selected with ``figure`` directive ``alt`` option\n", "being set to ``gallery_thumbnail``.\n", "\n", "\n", "## without ``alt`` text\n", "\n", "````{code-block} markdown\n", "```{figure} /_static/rgb.png\n", " :align: center\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n", "````\n", "\n", "```{figure} /_static/rgb.png\n", " :align: center\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n", "\n", "## ``alt`` set to ``gallery_thumbnail``\n", "\n", "````{code-block} markdown\n", ":emphasize-lines: 3\n", "```{figure} /_static/barchart.png\n", " :align: center\n", " :alt: gallery_thumbnail\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n", "````\n", "\n", "```{figure} /_static/barchart.png\n", " :align: center\n", " :alt: gallery_thumbnail\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n", "\n", "## ``alt`` set to a random text\n", "\n", "````{code-block} markdown\n", ":emphasize-lines: 3\n", "```{figure} /_static/bar_colors.png\n", " :align: center\n", " :alt: a random text\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n", "````\n", "\n", "```{figure} /_static/bar_colors.png\n", " :align: center\n", " :alt: a random text\n", " :width: 60%\n", "\n", "This is the caption of the figure (a simple paragraph).\n", "```\n" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 2 }